<!DOCTYPE html>
<html>
<head>
    <title>社保异动表</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <!--<ul id="myTab" class="nav nav-tabs">
            <li class="active"><a href="#jqGridDiv" data-toggle="tab">初审</a></li>
            <li><a href="#jqGridDiv" data-toggle="tab">复审</a></li>
            <li><a href="#jqGridDiv" data-toggle="tab">反审</a></li>
            <li><a href="#jqGridDiv" data-toggle="tab">退回</a></li>
        </ul>-->

        <div class="grid-btn" style="margin-top:15px;">
            <div class="form-group col-sm-2">
                 <el-date-picker type="daterange" v-model="q.dateRange" placeholder="申报日期范围" @change="dateChange"/>
            </div>
            <div class="form-group col-sm-2">
                <select v-model="q.declare" class="form-control" readonly="readonly">
                    <option v-for="declare in declare" :value="declare.value">{{declare.label}}</option>
                </select>
            </div>
            <div class="form-group col-sm-2">
                <select v-model="q.socialSecurity" class="form-control" readonly="readonly">
                    <option v-for="socialSecurity in socialSecurity" :value="socialSecurity.value">{{socialSecurity.label}}</option>
                </select>
            </div>
            <div class="form-group col-sm-2">
                <select v-model="q.confirmStatus" class="form-control" readonly="readonly">
                    <option value=""></option>
                    <option value="0">未审核</option>
                    <option value="1">初审</option>
                    <option value="2">终审</option>
                    <option value="3">反审</option>
                    <option value="4">退回</option>
                </select>
            </div>
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" v-model="q.declarePerson" placeholder="申报人">
            </div>
            <a class="btn btn-primary" @click="query"></i>&nbsp;查询</a>
            #if($shiro.hasPermission("socialsecuritytransaction:save"))
            <a class="btn btn-primary" @click="firstTrial"><i class="fa fa-plus"></i>&nbsp;初审</a>
            #end
            #if($shiro.hasPermission("socialsecuritytransaction:update"))
            <a class="btn btn-primary" @click="recheck"><i class="fa fa-pencil-square-o"></i>&nbsp;复审</a>
            #end
            #if($shiro.hasPermission("socialsecuritytransaction:delete"))
            <a class="btn btn-primary" @click="backTrial"><i class="fa fa-trash-o"></i>&nbsp;反审</a>
            #end
            #if($shiro.hasPermission("socialsecuritytransaction:delete"))
            <a class="btn btn-primary" @click="failedCheck"><i class="fa fa-trash-o"></i>&nbsp;退回</a>
            #end
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
        <!--<div id="myTabContent" class="tab-content">
            <div class="tab-pane fade in active" id="jqGridDiv" style="margin-top: 5px;">
                <table id="jqGrid"></table>
                <div id="jqGridPager"></div>
            </div>
        </div>-->
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">单位id</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.unitId" placeholder="单位id"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">员工id</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.employId" placeholder="员工id"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">人员派遣id</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.personDispatchId" placeholder="人员派遣id"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">申报类型(0申保，1退保)</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.declareType" placeholder="申报类型(0申保，1退保)"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">保险类型</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.insuranceType" placeholder="保险类型"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">申报时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.declareDate" placeholder="申报时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">申报人</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.declarePerson" placeholder="申报人"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">备注</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.remark" placeholder="备注"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">用工形式</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.employmentForm" placeholder="用工形式"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">异动原因</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.transactionReason" placeholder="异动原因"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">初审人</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.trialJudge" placeholder="初审人"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">初审日期</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.trialDate" placeholder="初审日期"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">终审人</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.chiefJudge" placeholder="终审人"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">终审日期</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.chiefDate" placeholder="终审日期"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">社保申报状态(0，待申报,1,申报中，2，已申报，3，退回,4，不申报,5,重新申报，6，临时退保)</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.processStatus" placeholder="社保申报状态(0，待申报,1,申报中，2，已申报，3，退回,4，不申报,5,重新申报，6，临时退保)"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">审核状态(0，未审核，1,初审，2,终审，3，反审，4，退回)</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.confirmStatus" placeholder="审核状态(0，未审核，1,初审，2,终审，3，反审，4，退回)"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">退回说明</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="socialSecurityTransaction.returnExplain" placeholder="退回说明"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${rc.contextPath}/js/socialSecurity/socialsecuritytransaction.js?_${date.systemTime}"></script>
</body>
</html>